<div class="span-5" style="margin-top:10px">
    <div style="padding: 5px 0;">
        <div style="padding: 10px 0; text-align: center; border-bottom: 1px dashed #CCC;">
            <img src="<?PHP echo base_url(); ?>static/images/logo_small.png"/><br style="margin:5px"/>
            <span class="text-title">ĐƯỢC XEM NHIỀU NHẤT</span>
        </div>
        <?php
        if(sizeof($arrNode) > 0)
        {
            foreach($arrNode as $index => $node)
            {
                //Check category
                if($node['category_id'] == 8)
                    $category = 'news';
                elseif($node['category_id'] >= 9 && $node['category_id'] <= 12)
                    $category = 'video';
                elseif($node['category_id'] >= 13 && $node['category_id'] <= 15)
                    $category = 'audio';
                elseif($node['category_id'] >= 17 && $node['category_id'] <= 21)
                    $category = 'photos';
                else
                    $category = 'consulting';
        ?>
                <div style="background: #FFF; margin: 5px 0;">
                    <div class="left_news">
                        <a href="<?php echo site_url().'/'.$category.'/view/id/'.$node['node_id']; ?>"><?php echo $node['title']; ?></a>
                        <p>
                            <?php echo $this->utf8_substr($node['description'], 0, 150); ?>
                            <a href="<?php echo site_url().'/'.$category.'/view/id/'.$node['node_id']; ?>">xem tiếp</a>
                        </p>
                    </div>
                </div>
        <?php
            }
        }
        ?>
    </div>
</div>
